package com.git.bds.mr.records.mapper;

import com.git.bds.mr.records.model.domain.Records;
import com.git.bds.mr.records.model.dto.PatientRecordDTO;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 病历信息表 Mapper 接口
 * </p>
 *
 * @author 成大事
 * @since 2022-09-27 14:48:01
 */
@Mapper
public interface RecordsMapper extends MPJBaseMapper<Records> {

    /**
     * 患者按页获取记录
     *
     * @param pageNo        页码
     * @param pageSize      页面大小
     * @param loginIdAsLong 登录id长度
     * @return {@link PatientRecordDTO}
     */
    List<PatientRecordDTO> patientGetRecordsByPage(@Param("patientId") long loginIdAsLong, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);
}
